package com.akajack.domain;

import com.akajack.domain.solution.TreeNodeSolution;
import com.akajack.domain.util.customize.build.Tree.TreeNodeBuild;
import com.akajack.domain.util.customize.build.Tree.TreeNodePlusBuild;
import com.akajack.domain.util.customize.node.Tree.TreeNode;
import com.akajack.domain.util.customize.node.Tree.TreeNodePlus;

public class RunFuncMain {
    public static void main(String[] args) {
        TreeNodeSolution tns = new TreeNodeSolution();
//        TreeNodePlus root = TreeNodePlusBuild.buildTreeNodePlusFromArray(new Integer[]{3,null,1,null,5});
//        System.out.println(tns.maxDepth(root));
//        1,3,2,5,3,null,9 //5,14,null,1
        TreeNode root = TreeNodeBuild.buildTreeFromArray(new Integer[]{1,2,3});
        System.out.println(tns.largestValues(root));
    }
}
